package com.ruicar.afs.cloud.basic.api.fegin.loanchange;

import com.ruicar.afs.cloud.basic.api.dto.RelationInfoChangeDTO;
import com.ruicar.afs.cloud.common.core.util.IResponse;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author: Lee
 * @date: 2020/5/11 19:39
 * @description:
 */
@FeignClient(value = "${com.ruicar.service-names.basic-server}",contextId = "upd-reletion-change")
public interface LoanChangeFegin {

    /**
     * 联系方式变更，更新数据
     */
    @ApiOperation("联系方式变更，更新数据")
    @PostMapping(value = "basicRelation/updateRelation")
    IResponse updateRelation(@RequestBody RelationInfoChangeDTO dto);


    /**
     * 获取还款日变更校验
     */
    @ApiOperation("联系方式变更，更新数据")
    @PostMapping(value = "repaymentDateChange/repaymentChangeValid")
    IResponse<String> repaymentChangeValid(@RequestParam("contractNo") String contractNo);


}
